package com.sgx.learning.luban.homework.attributes.ext.stackmapframe;

import com.sgx.learning.luban.homework.basictype.U2;
import com.sgx.learning.luban.homework.constantpool.ConstantPoolInfo;
import lombok.Data;

import java.io.IOException;
import java.io.InputStream;

@Data
public class ChopFrame extends StackMapFrame{

    private short offsetDelta;
    @Override
    public void read(InputStream is, ConstantPoolInfo[] constantPoolInfos) throws IOException {
        this.offsetDelta = U2.read(is).getValue();
    }
}
